package Demo;

public class TriAngle {
    private int base;
    private int height;

    TriAngle(int base,int height){
        this.base = base;
        this.height = height;
    }
    public int getBase() {
        return base;
    }

    public void setBase(int base) {
        this.base = base;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
    public int area(int base,int height){
        return base*height/2;
    }
}
